package com.test.stock.listener;

import org.springframework.boot.web.context.WebServerInitializedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 监听演示
 *
 * @author IT贱男
 * @version v1.0.0
 * @date 2022/11/13 21:13
 */
@Component
public class StartApplicationListener implements ApplicationListener<WebServerInitializedEvent> {

    @Override
    public void onApplicationEvent(WebServerInitializedEvent event) {
        System.out.println("[StartApplicationListener] 监听演示");
    }
}
